﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;

namespace SignalRTest
{
    public class TestHub : Hub
    {
        public void SendMessage(string userName,string msg)
        {
            Clients.All.onMessage(userName,msg);
        }

        public Person GetPerson()
        {
            string b = null;
            b.ToString();
            Person p = new Person() {
                id="1",
                name = "glz",
                age = 12,
                group = "g1"
            };
            return p;
        }
    }
}